from rest_framework.viewsets import ModelViewSet
from circuit.serializers import PathSerializer, PathPointSerializer, PathVehicleSerializer
from circuit.models import Path, PathPoint, PathVehicle


class PathViewSet(ModelViewSet):
    queryset = Path.objects.all()
    serializer_class = PathSerializer


class PathPointViewSet(ModelViewSet):
    queryset = PathPoint.objects.all()
    serializer_class = PathPointSerializer


class PathVehicleViewSet(ModelViewSet):
    queryset = PathVehicle.objects.all()
    serializer_class = PathVehicleSerializer
